package org.byqh.dqeai.controller;

import io.swagger.v3.oas.annotations.tags.Tag;
import org.byqh.dqeai.common.Json;
import org.byqh.dqeai.dto.common.IPage;
import org.byqh.dqeai.entity.EaiSysDept;
import org.byqh.dqeai.entity.proxy.EaiSysDeptProxy;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/eaiSysDept")
@Tag(name = "系统[EaiSysDept] - 部门管理")
public class EaiSysDeptController extends BaseController<EaiSysDept, EaiSysDeptProxy> {
    /**
     * 分页查询数据
     */
    @PostMapping(value = "/list")
    public Json<IPage<EaiSysDept>> list(@RequestParam(defaultValue = "1") Integer page,
                                        @RequestParam(defaultValue = "10") Integer size,
                                        @RequestParam(defaultValue = "", required = false) String sort,
                                        @RequestBody(required = false) EaiSysDept dto) {

        return this.listPageImpl(EaiSysDept.class, page, size, null);
    }
}